<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 145 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts145p0{position:absolute;left:106px;top:97px;}
 .ts145p1{position:absolute;left:352px;top:97px;}
 .ts145p3{position:absolute;left:665px;top:97px;}
 .ts145p7{position:absolute;left:106px;top:113px;}
 .ts145p8{position:absolute;left:706px;top:1026px;}
 .ts145p9{position:absolute;left:331px;top:1044px;}
 .ts145p13{position:absolute;left:106px;top:147px;}
 .ts145p14{position:absolute;left:106px;top:165px;}
 .ts145p16{position:absolute;left:106px;top:183px;}
 .ts145p18{position:absolute;left:106px;top:201px;}
 .ts145p20{position:absolute;left:106px;top:220px;}
 .ts145p22{position:absolute;left:106px;top:238px;}
 .ts145p25{position:absolute;left:106px;top:256px;}
 .ts145p27{position:absolute;left:106px;top:274px;}
 .ts145p29{position:absolute;left:106px;top:292px;}
 .ts145p31{position:absolute;left:106px;top:310px;}
 .ts145p33{position:absolute;left:106px;top:328px;}
 .ts145p35{position:absolute;left:106px;top:346px;}
 .ts145p38{position:absolute;left:106px;top:365px;}
 .ts145p40{position:absolute;left:106px;top:383px;}
 .ts145p42{position:absolute;left:106px;top:401px;}
 .ts145p44{position:absolute;left:106px;top:419px;}
 .ts145p46{position:absolute;left:106px;top:437px;}
 .ts145p48{position:absolute;left:106px;top:455px;}
 .ts145p49{position:absolute;left:106px;top:473px;}
 .ts145p51{position:absolute;left:106px;top:491px;}
 .ts145p53{position:absolute;left:106px;top:510px;}
 .ts145p54{position:absolute;left:106px;top:528px;}
 .ts145p56{position:absolute;left:106px;top:546px;}
 .ts145p57{position:absolute;left:106px;top:564px;}
 .ts145p59{position:absolute;left:106px;top:583px;}
 .ts145p60{position:absolute;left:106px;top:601px;}
 .ts145p62{position:absolute;left:106px;top:620px;}
 .ts145p63{position:absolute;left:106px;top:638px;}
 .ts145p65{position:absolute;left:106px;top:656px;}
 .ts145p66{position:absolute;left:106px;top:675px;}
 .ts145p67{position:absolute;left:106px;top:693px;}
 .ts145p69{position:absolute;left:106px;top:712px;}
 .ts145p70{position:absolute;left:106px;top:730px;}
 .ts145p72{position:absolute;left:106px;top:748px;}
 .ts145p73{position:absolute;left:106px;top:767px;}
 .ts145p75{position:absolute;left:106px;top:785px;}
 .ts145p76{position:absolute;left:106px;top:804px;}
 .ts145p77{position:absolute;left:106px;top:822px;}
 .ts145p79{position:absolute;left:106px;top:840px;}
 .ts145p80{position:absolute;left:106px;top:859px;}
 .ts145p81{position:absolute;left:106px;top:877px;}
 .ts145p83{position:absolute;left:106px;top:896px;}
 .ts145p84{position:absolute;left:106px;top:914px;}
 .ts145p86{position:absolute;left:106px;top:932px;}
 .ts145p87{position:absolute;left:106px;top:952px;}
 .ts145p89{position:absolute;left:106px;top:970px;}
 .ts145p90{position:absolute;left:106px;top:988px;}

 /* Font Styles */
 .ft0p145{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p145{font-weight:normal;}
 .ft2p145{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p145{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p145{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p145{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft6p145{font-family:arial,sans-serif;}
 .ft7p145{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground145{position:absolute;left:97px;top:145px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index144.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;145 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index146.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground145><img src="./background145.png" width="633" height="910" border="0" alt=""></div>
<div class=ts145p0><span class="ft0p145"> </span></div>
<div class=ts145p1><span class="ft0p145">Gravitybox Schedule Primer<span class="ft1p145"> </span></span></div>
<div class=ts145p3><span class="ft0p145">Page 143&nbsp; </span></div>
<div class=ts145p7><span class="ft2p145"> </span></div>
<div class=ts145p8><span class="ft3p145"> </span></div>
<div class=ts145p9><span class="ft4p145">1998&#45;2004 Gravitybox Software LLC<span class="ft3p145"> </span></span></div>
<div class=ts145p13><span class="ft5p145"> </span></div>
<div class=ts145p14><span class="ft5p145">Dim oXMLParameters As CXMLParameters </span></div>
<div class=ts145p16><span class="ft5p145">Dim sFileName As String </span></div>
<div class=ts145p18><span class="ft5p145">&nbsp;&nbsp; </span></div>
<div class=ts145p20><span class="ft5p145">&nbsp; 'This will commit the schedule to file </span></div>
<div class=ts145p22><span class="ft5p145">&nbsp; Set oXMLParameters = New CXMLParameters </span></div>
<div class=ts145p25><span class="ft5p145">&nbsp; sFileName = AppPath &#38; GetFileName(Me.MyDate) </span></div>
<div class=ts145p27><span class="ft5p145">&nbsp; oXMLParameters.FileName = sFileName </span></div>
<div class=ts145p29><span class="ft5p145">&nbsp; oXMLParameters.Overwrite = True </span></div>
<div class=ts145p31><span class="ft5p145">&nbsp; oXMLParameters.EmployGMT = False </span></div>
<div class=ts145p33><span class="ft5p145">&nbsp; oXMLParameters.PropertyAll = False </span></div>
<div class=ts145p35><span class="ft5p145">&nbsp; Call oXMLParameters.UseAllCollections(False) </span></div>
<div class=ts145p38><span class="ft5p145">&nbsp; oXMLParameters.VerifyOnly = False </span></div>
<div class=ts145p40><span class="ft5p145">&nbsp; Call Schedule1.ExportXML(oXMLParameters) </span></div>
<div class=ts145p42><span class="ft5p145">&nbsp;&nbsp; </span></div>
<div class=ts145p44><span class="ft5p145">&nbsp; 'There is nothing dirty anymore </span></div>
<div class=ts145p46><span class="ft5p145">&nbsp; Changed = False </span></div>
<div class=ts145p48><span class="ft5p145"> </span></div>
<div class=ts145p49><span class="ft5p145">EndSub: </span></div>
<div class=ts145p51><span class="ft5p145">&nbsp; Set oXMLParameters = Nothing </span></div>
<div class=ts145p53><span class="ft5p145"> </span></div>
<div class=ts145p54><span class="ft5p145">End Sub<span class="ft6p145"> </span></span></div>
<div class=ts145p56><span class="ft7p145"> </span></div>
<div class=ts145p57><span class="ft7p145">Notice that the methods make sure to only save and load the ScheduleItems collection. </span></div>
<div class=ts145p59><span class="ft7p145">The &#147;UseAllCollections&#148; method has been sent a parameter of false. This will ensure </span></div>
<div class=ts145p60><span class="ft7p145">that the Rooms, Categories, and other collections are not saved or loaded to/from file. </span></div>
<div class=ts145p62><span class="ft7p145"> </span></div>
<div class=ts145p63><span class="ft7p145">The child form has a property called MyDate. This is a property used to identify the date </span></div>
<div class=ts145p65><span class="ft7p145">associated with the form. We will use it later to make sure that we do not load a date </span></div>
<div class=ts145p66><span class="ft7p145">more than once. Notice that this property is set in the OpenFile method. We will make </span></div>
<div class=ts145p67><span class="ft7p145">sure that anytime a form is loaded this method is called. If the file does not exist, we will </span></div>
<div class=ts145p69><span class="ft7p145">load simply load a blank day. If it does exist, we will load it form file. Either way, this </span></div>
<div class=ts145p70><span class="ft7p145">property is set during the method call. </span></div>
<div class=ts145p72><span class="ft7p145"> </span></div>
<div class=ts145p73><span class="ft7p145">A final method for the child form is the print method. It will print the entire existing </span></div>
<div class=ts145p75><span class="ft7p145">schedule. First we must declare the print parameter object. This stores all the </span></div>
<div class=ts145p76><span class="ft7p145">information about the printing process such as copies, orientation, etc. We set its device </span></div>
<div class=ts145p77><span class="ft7p145">name to the default printer&#146;s device name. This will setup print to work with this printer. </span></div>
<div class=ts145p79><span class="ft7p145">The GoPrint method is flexible. Depending on the configuration of the schedule it takes </span></div>
<div class=ts145p80><span class="ft7p145">differing parameters. Since we are printing a schedule that has been displayed in </span></div>
<div class=ts145p81><span class="ft7p145">RoomOnly mode, the first two parameters are the start room and end room. These are </span></div>
<div class=ts145p83><span class="ft7p145">set to the first and last rooms. The start time is set to the schedule&#146;s start time and the </span></div>
<div class=ts145p84><span class="ft7p145">end time to the schedule&#146;s last displayed time. This will print the entire schedule. </span></div>
<div class=ts145p86><span class="ft7p145"> </span></div>
<div class=ts145p87><span class="ft5p145">Public Function PrintFile() As Boolean </span></div>
<div class=ts145p89><span class="ft5p145"> </span></div>
<div class=ts145p90><span class="ft5p145">Dim oPrinterParameter As New CPrinterParameter </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
